<!doctype html>
<html lang="zh-CN">

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <!-- 新 Bootstrap4 核心 CSS 文件 -->
  <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.1/font/bootstrap-icons.css">
  <style>
    .foot {
      height: 200px;
      background-color: black;
    }
  </style>
  <title>校园网</title>
</head>

<body>
  <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
  <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>

  <!-- bootstrap.bundle.min.js 用于弹窗、提示、下拉菜单，包含了 popper.min.js -->
  <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>

  <!-- 最新的 Bootstrap4 核心 JavaScript 文件 -->
  <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>

  <nav class="navbar navbar-expand-sm bg-dark navbar-dark d-flex justify-content-between" style="padding: 10px 10%;">

    <a class="navbar-brand" href="#">Logo</a>

    {{if msg}}
    <ul class="navbar-nav text-right">
      <li class="nav-item">
        <a class="nav-link" href="/home/exitlogin">退出登录</a>
      </li>
    </ul>
    {{else}}
    <ul class="navbar-nav text-right">
      <li class="nav-item">
        <a class="nav-link" href="/home/login">登录</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="/home/register">注册</a>
      </li>
    </ul>
    {{/if}}

  </nav>
  {{ block 'main'}}
  {{ /block }}


  {{ block 'script'}}
  {{ /block }}


</body>

</html>